package com.qf.fronted.controller;

import com.qf.fronted.domain.HeaderGoods;
import com.qf.fronted.service.IHeaderGoodsService;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Date: 2020/9/22 10:00
 * @Author: 何泽富
 * @Description :
 */
@RestController
@RequestMapping("/headerGoods")
@CrossOrigin("*")
public class HeaderGoodsController {
    private IHeaderGoodsService headerGoodsServiceImpl;

    public HeaderGoodsController(IHeaderGoodsService headerGoodsServiceImpl) {
        this.headerGoodsServiceImpl = headerGoodsServiceImpl;
    }

    @GetMapping
    public List<HeaderGoods> getHeaderGoods() {
        List<HeaderGoods> srcImage = headerGoodsServiceImpl.getSrcImage();
        return srcImage;
    }
}

